import Vue from "vue";
import VueRouter from "vue-router";
Vue.use(VueRouter);
const router = new VueRouter({
    routes: [ //主页布局
        {
            path: "/",
            redirect: "/home",
            meta: { title: "主页 " },
            component: () =>
                import ("@/layout/IndexLayout.vue"),
            children: [{
                path: "home",
                meta: {
                    title: "首页"
                },
                component: () =>
                    import ("@/pages/HomePage.vue")
            }]
        }
    ]
})
export default router